/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 28956
 * Date: 2024-07-17
 * Time: 20:49
 */
public class Test {
    public static void main(String[] args) {
        SingleLinkedList singleLinkedList = new SingleLinkedList();
        //singleLinkedList.createList();
        singleLinkedList.addFirst(12);
        singleLinkedList.addFirst(23);
        singleLinkedList.addFirst(12);
        singleLinkedList.addFirst(45);
        singleLinkedList.addFirst(56);

        singleLinkedList.display();

        //singleLinkedList.addIndex(-1,199);

//        System.out.println("长度："+singleLinkedList.size());
//
//        System.out.println("是否包含："+singleLinkedList.contains(12));
//        singleLinkedList.remove(56);
//        singleLinkedList.display();

//        singleLinkedList.addIndex(3,199);
//        singleLinkedList.display();

        singleLinkedList.removeAllKey(12);
        singleLinkedList.display();
        singleLinkedList.clear();
        singleLinkedList.display();


    }


}
